import HighLight from "./highlight.js";
import Draggable from "./draggable.js";

const directive = {  // 汇总指令
    HighLight,
    Draggable
}

export default {
    install(app) { // app === vue 实例
        // 注册指令
        Object.keys(directive).forEach(key => {
            app.directive(key, directive[key])  // 注册指令
        })
    }
}